<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
 <style>
 		body{
            font-family: SimSun;  /*字体样式不能忘记，否则转换pdf,中文可能无法显示*/
        }
        .quotation {
            width: 100%;
        }
        .quotation, .quotation th, .quotation td {
            border: 1px solid black;
            border-collapse: collapse;
            line-height:30px;
            text-align:center;
        }
        .quotation th {
           font-weight:400;
        }
        .content {
        	width: 100%;
        }
         .content, .content th, .content td {
            border: 0px solid black;
            border-collapse: collapse;
            text-align:left;
            line-height:36px;
        }
    </style>
</head>
<body>
<div width="100%">
<div style="width:100%;text-align:center;font-size:18px;font-weight:400; margin-bottom:30px">南京邮电大学料单申报表</div>
<div style="width:200px;margin-bottom:10px"><span>申报号:</span><span th:text="${form.applicationNo}"></span></div>
<div style="width:230px;float:right;margin-top:-20px"><span>申报时间:</span><span th:text="${#dates.format(form.createTime, 'yyyy-MM-dd HH:mm:ss')}"></span></div>
</div>
<table class="quotation">
	<tr>
	<td colspan="6" align="center">
		<table class="content">
		    <tr>
		        <td width="100">申报人工号:</td><td th:text="${user.userName}"></td>
		        <td width="100">姓名:</td><td th:text="${user.nickName}"></td>
		        <td width="100">联系方式:</td><td th:text="${user.phonenumber}"></td>
		    </tr>
		    <tr>
		        <td>料单类型:</td><td th:text="${receiptType}"></td>
		        <td>使用单位:</td><td th:text="${labName}"></td>
		        <td>使用方向: </td><td th:text="${expectUse}"></td>
		    </tr>
		     <tr>
		        <td>经费名称:</td><td th:text="${form.fundsItem}"></td>
		        <td>发票日期:</td><td th:text="${#dates.format(form.purchaseDate, 'yyyy-MM-dd')}"></td>
		        <td>公司名称:</td><td th:text="${form.manufactor}"></td>
		    </tr>
		    <tr>
		        <td>发票号码:</td><td th:utext="${voucherNo}" style="line-height:20px"></td>
		        <td></td><td></td>
		        <td></td><td></td>
		    </tr>
		</table>
	</td>
	</tr>
    <tr>
        <th>序号</th>
        <th>资产名称</th>
        <th>型号规格</th>
        <th>数量</th>
        <th>单价</th>
        <th>小计</th>
    </tr>
    <tr th:each="item, iterStat: ${deviceItems}">
        <td th:text="${iterStat.index + 1}"></td>
        <td th:text="${item.assetName}"></td>
        <td th:text="${item.specs}"></td>
        <td th:text="${item.quantity}"></td>
        <td th:text="${item.unitPrice}"></td>
        <td th:text="${item.totalMoney}"></td>
    </tr>
    <tr>
    <td colspan="6" align="center">
    	金额总计:<span th:text="${form.totalPrice}"></span>元; (大写)<span th:text="${form.originalVoucher}"></span>
    </td>
    </tr>
    <tr>
    <td colspan="2">备注:</td>
    <td colspan="4" th:text="${form.comments}"></td>
    </tr>
    <tr>
	<td colspan="6" align="center">
		<table class="content">
		    <tr>
		        <td width="60">收料:</td><td width="100" th:text="${form.receiptorId}"></td>
		        <td width="60">经办:</td><td width="100" th:text="${form.contactUser}"></td>
		        <td width="60">制单:</td><td width="100" th:text="${user.nickName}"></td>
		        <td width="80"></td><td width="100"></td>
		    </tr>
		</table>
	</td>
	</tr>
</table>
</body>
</html>